#ifndef RENTGENWIDGET_H
#define RENTGENWIDGET_H

#include <QWidget>
#include <QStyledItemDelegate>
#include <QStandardItemModel>
#include <QPainter>

//#include "defs.h"
#include "manager.h"
#include "logger.h"

namespace Ui {
class RentgenWidget;
}

class RentgenWidget : public QWidget
{
    Q_OBJECT
    
public:
    RentgenWidget(QWidget *parent = 0);
    ~RentgenWidget();

    void setup();
    void setupModel();
    void clearAll();
    void setButtonsEnabled(bool enabled);
    void addLine(const QString& title, const QString& src,
                 const QString& ppc, const QString& comment);

private slots:
    void on_btnAdd_clicked();
    void on_btnDelete_clicked();
    void on_btnView_clicked();

private:
    Ui::RentgenWidget *ui;
//    QStandardItemModel *renModel;
};

#endif // RENTGENWIDGET_H
